package net.qhzw.vip.qiyu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 充电桩
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "dts_charging_pile")
public class DtsChargingPile implements Serializable {

    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    /**
     * 租户id
     */
    @TableField(value = "shop_id")
    private Long shopId;

    /**
     * 充电桩编码/名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 充电桩地址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 负责人
     */
    @TableField(value = "principal")
    private String principal;

    /**
     * 充电桩联系电话
     */
    @TableField(value = "mobile")
    private String mobile;

    /**
     * 经度
     */
    @TableField(value = "longitude")
    private Double longitude;

    /**
     * 经度
     */
    @TableField(value = "latitude")
    private Double latitude;

    /**
     * 创建时间
     */
    @TableField(value = "created")
    private Date created;

    /**
     * 距离
     */
    @TableField(exist = false)
    private Double distance;

    private static final long serialVersionUID = 1L;
}